//
// Created by 123 on 2025/1/2.
//
#include "iostream"
using namespace std;

class Person{
public:
    string name;
    int age;
    Person(string name,int age){
        this->name = name;
        this->age = age;
    }
    bool operator==(Person& person){
        if(this->name == person.name && this->age == person.age){
            return true;
        }else{
            return false;
        }
    }
    bool operator!=(Person& p){
        if(this->name == p.name && this->age == p.age){
            return false;
        }else{
            return true;
        }
    }
};

void test(){
    Person a("a",2);
    Person b("b",2);
    if(a==b){
        cout << "a==b" << endl;
    }else{
        cout << "a!=b" << endl;
    }
}

int main076(){
    test();

    return 0;
}